<?php
/**
 * Created by IntelliJ IDEA. 
 * User: cmn
 * Date: 2019-10-16
 * Time: 19:59
 */

//include '../esign_utils/HttpHelper.php';
namespace tech\esign_core;
use tech\esign_constant\Config;
use tech\esign_utils\CommonHelper;
use tech\esign_utils\HttpHelper;

class InitClientHelper
{

    public static function doRegister(){
        $config = IS_TEST ? Config::$config_test : Config::$config;
        $data = array(
            'projectConfig'=> array(
                'projectId'=>$config['projectId'],
                'projectSecret'=>$config['projectSecret'],
                'itsmApiUrl'=>$config['openAPIUrl']
            )
        );
        $result = HttpHelper::doPost($config['warUrl'].Config::$urlMap['INIT_URL'],$data);
        return $result;
    }



}
